Component({
  properties: {
    links: {
      type: Array
    },
    icon: {
      type: String
    },
    title: {
      type: String
    },
    show: {
      type: Boolean,
      value: false
    }
  },
  methods: {
    onClick(e) {
      let dataset = e.currentTarget.dataset;
      let linkObj = dataset.link;
      this.triggerEvent('click', linkObj);
    },
    onClose() {
      this.setData({
        show: false
      })
    }
  }
})